Skip to main content

Yarn 2+

Yarn2

The Yarn 2+ package manager for Node.js.

Configuration

Example

{
"Yarn2": {
"options": {
"disableRegistryCertificateVerification": false,
"corepackOverride": null
}
}
}

Options

disableRegistryCertificateVerification

BOOLEAN Default

If true, the yarn npm info commands called by this package manager will not verify the server certificate of the HTTPS connection to the NPM registry. This allows replacing the latter by a local one, e.g., for intercepting the requests or replaying them.

corepackOverride

BOOLEAN

Per default, this class determines via auto-detection whether Yarn has been installed via Corepack, which impacts the name of the executable to use. With this option, auto-detection can be disabled, and the enabled status of Corepack can be explicitly specified. This is useful to force a specific behavior in some environments.